Fixed typo, forgot 'id' command
authorLance Lin <lqi254@protonmail.com>
Wed, 13 Apr 2022 12:44:02 +0000 (19:44 +0700)
committerLance Lin <lqi254@protonmail.com>
Wed, 13 Apr 2022 12:44:02 +0000 (19:44 +0700)
debian/dcmtk.postrm

index 17d01187db96c1be40ca06fa0724faa560615650..5a493f483fbb7d597ab5c47a84baea4b638d1a5d 100644 (file)
@@ -16,7 +16,7 @@ if [ "$1" = "purge" ] ; then
 fi
 
 # Remove dcmtk user/group if they exist on cleanup
-if -u "dcmtk" > /dev/null 2>&1; then
+if id -u "dcmtk" > /dev/null 2>&1; then
        echo "Removing 'dcmtk' user and group from the system...\n"
        userdel dcmtk
 fi